#include<stdio.h>
void sort(int *a, int *b, int *c)
{
    int min = *a, max = *a;
    int sum = *a+*b+*c;
    min = (min < *b) ? min : *b;
    min = (min < *c) ? min : *c;
    max = (max > *b) ? max : *b;
    max = (max > *c) ? max : *c;
    *a = min;
    *c = max;
    *b = sum - min - max;
}
int Approximation(int *x, int *y)
{
    int a = *x;
    int b = *y;
    while(b != 0)
    {
        int t = b;
        b = a % b;
        a = t;
    }
    return a;
}
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    sort(&a, &b, &c); 
    int x = Approximation(&a, &c);
    printf("%d/%d\n", a/x, c/x);
    return 0;
}